<template>
	<view>
		<view class="smart-panel-title" @click="goDetailPage('basic-content')">
			<text>2.基础内容</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('text')">
			<text>text文本编辑</text>
		</view>
		<view class="smart-panel-h" @click="goDetailPage('icon')">
			<text>icon图标</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goDetailPage(e) {
				if (typeof e === 'string') {
					uni.navigateTo({
						url: '/pages/competents/' + e + '/' + e
					});
				} else {
					uni.navigateTo({
						url: e.url
					})
				}
			}
		}
	}
</script>

<style>

</style>